<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<s:url value="/css/reset-fonts-grids.css"/>"
  rel="stylesheet" type="text/css" />
<title>Lab02</title>
</head>
<body>
<br />
<s:form action="user-save">
  <s:hidden name="user.id" />
  <b>id:</b>
  <s:property value="user.id" />
  <b>account:</b>
  <s:textfield name="user.account" />
  <b>email:</b>
  <s:textfield name="user.email" />
  <b>password:</b>
  <s:textfield name="user.password" />
  <s:submit value="save" />
</s:form>
<br />
<s:iterator value="users">
  <b>id: </b>
  <s:property value="id" />&nbsp;||&nbsp;
	<b>account: </b>
  <s:property value="account" />&nbsp;||&nbsp;
	<b>email: </b>
  <s:property value="email" />&nbsp;||&nbsp;
	<b>password: </b>
  <s:property value="password" />&nbsp;||&nbsp;
	<s:url var="url" action="user-edit">
    <s:param name="user.id" value="id" />
  </s:url>
  <a href="<s:property value="#url"/>">edit</a>
  <s:url var="url" action="user-destroy">
    <s:param name="user.id" value="id" />
  </s:url>
  <a href="<s:property value="#url"/>">delete</a>
  <br />
</s:iterator>
</body>
</html>
